package yz.dut.edu.graduate.dao;

import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import yz.dut.edu.graduate.pojo.Dish;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Repository
public interface DishMapper {
    int deleteByPrimaryKey(Integer dId);

    int insert(Dish record);

    int insertSelective(Dish record);

    Dish selectByDishName(String dishName);

    List<Dish> selectByDishNameRoughly(String dishName);

    Dish selectByPrimaryKey(Integer dId);

    int updateByPrimaryKeySelective(Dish record);

    List<Dish> selectAll();

    List<Dish> selectPage();

    int updateByPrimaryKey(Dish record);
}